﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JFList.aspx.cs" Inherits="Admin_JiFen_JFList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">
    <link href="../50/style.css" rel="stylesheet" />
    <link href="../../dis/My97DatePicker/skin/whyGreen/datepicker.css" rel="stylesheet" />
    <link href="../../dis/My97DatePicker/skin/default/datepicker.css" rel="stylesheet" />
    <script src="../../dis/My97DatePicker/WdatePicker.js"></script>

    <style>
        .msgtable td {
            padding: 0px;
        }

        .dropList {
            display: inline-block;
            float: left;
            margin-top: -10px;
            position: relative;
            padding: 0;
            margin-left: 150px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" class="form-horizontal m-t">
        <div class="wrapper animated fadeInRight">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <div class="dropList" style="margin-left: 60px;">
                                <asp:TextBox ID="txtUtel" runat="server" placeholder="请输入手机号码或姓名" Style="padding: 5px 12px;"></asp:TextBox>
                                &nbsp;&nbsp;
                                来源：<asp:DropDownList ID="ddlState" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlState_SelectedIndexChanged" Style="padding: 5px 12px; width: 132px;">
                                    <%--<asp:ListItem Value="请选择">请选择</asp:ListItem>
                                    <asp:ListItem Value="充值">充值</asp:ListItem>
                                    <asp:ListItem Value="预计">预计</asp:ListItem>
                                    <asp:ListItem Value="活动">活动</asp:ListItem>--%>
                                </asp:DropDownList>
                                &nbsp;&nbsp
                                时间：<asp:TextBox ID="txtStartTime" runat="server" Style="padding: 4px 12px; width: 196px;" onclick="WdatePicker({el:'txtStartTime',startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" placeholder="点击选择时间"></asp:TextBox>
                                &minus;<asp:TextBox ID="txtEndtime" runat="server" Style="padding: 4px 12px; width: 196px;" onclick="WdatePicker({el:'txtEndtime',dateFmt:'yyyy/MM/dd HH:mm:ss'})" placeholder="点击选择时间"></asp:TextBox>
                                &nbsp;&nbsp;<asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" CssClass='btn btn-primary btn-sm' />
                            </div>

                            <div class="ibox-tools">
                                <a onclick="location.reload();" class="btn btn-primary btn-xs"><i class="fa fa-refresh">&nbsp;&nbsp; 刷 新</i></a>
                                <!--a href="#" id="Add" class="btn btn-primary btn-xs"><i class="fa fa-plus"></i>&nbsp;&nbsp; 新增内容</!--a-->
                            </div>
                        </div>
                        <div class="ibox-content">

                            <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
                                <HeaderTemplate>
                                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="20">
                                        <thead>
                                            <tr>
                                                <th align="center">序号</th>
                                                <th align="center">用户</th>
                                                <th align="center">分数</th>
                                                <th align="center">来源</th>
                                                <%--<th align="center">对象</th>--%>
                                                <th align="center">时间 </th>
                                                <th align="center">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr class="gradeX">
                                        <td><asp:Label ID="lb_id" runat="server" Text='<%#Eval("JID")%>'></asp:Label></td>
                                        <td><%#methods.getUser(Eval("UGuid").ToString())[0]%></td>
                                        <td><%#Eval("JFen")%></td>
                                        <td><%# Eval("JGetWay")%></td>
                                        <td><%#string.Format("{0:g}", Eval("JTime"))%></td>
                                        <td>
                                        <a onclick="EditTag('<%#Eval("JID")%>')" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i>&nbsp;&nbsp;  修改</a>
                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="del" CssClass="btn btn-danger btn-xs"><i class="fa fa-remove"></i>&nbsp;&nbsp;  删除</asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate>
                                    </tbody>
       
                                </table>
                                </FooterTemplate>
                            </asp:Repeater>

                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="20" FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页" AlwaysShow="true" OnPageChanging="AspNetPager1_PageChanging" CssClass="paginator" CurrentPageButtonClass="cpb">
                            </webdiyer:AspNetPager>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>

    <!-- 全局js -->
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

    <!-- 自定js -->

    <script src="../js/plugins/footable/footable.all.min.js" type="text/javascript"></script>
    <script src="../js/content.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/layer/layer.js"></script>

    <!-- iCheck -->
    <script src="../js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green'

            });
        });
    </script>

    <script type="text/javascript">
        $(document).ready(function () { $(".footable").footable(); });
    </script>
    <script type="text/javascript">


        $(function () {
            $("#Add").click(function () {

                parent.layer.open({
                    type: 2,
                    title: '添加新内容',
                    shadeClose: true,
                    shade: 0.8,
                    area: ['100%', '100%'],
                    content: '/Admin/JiFen/JFAdd.aspx',  //iframe的url
                    end: function () {
                        location.reload();
                    }
                });
            });
        });

        function EditTag(ID) {
            parent.layer.open({
                type: 2,
                title: '修改内容',
                shadeClose: true,
                shade: 0.8,
                area: ['100%', '100%'],
                content: '/Admin/JiFen/JFAdd.aspx?id=' + ID,  //iframe的url
                end: function () {
                    location.reload();
                }
            });
        }

        $('.btn-danger').click(function () {
            return confirm("删除后不可恢复，确定要删除吗？");
        });
    </script>
</body>
</html>
